package com.example.card.smarthome.model;

import java.util.Arrays;

/**
 * =============================================================================
 * Copyright (c) 2016 Card All rights reserved.
 * Packname com.example.card.smarthome.model
 * Created by Card.
 * Created time 2016/12/8 10:56.
 * Version   1.0;
 * Describe :
 * History:
 * ==============================================================================
 */

public class RecieveData {

    //传感器类型
    private byte sensorType;
    //命令码
    private byte	order;
    //设备编号
    private byte[] sensorID;
    //数据长度
    private byte dataLength;
    //数据域
    private byte[] data;
    //设备类型
    private byte equimentType;
    //接受数据信息
    private byte[] recieveMsg;

    public byte getSensorType() {
        return sensorType;
    }

    public void setSensorType(byte sensorType) {
        this.sensorType = sensorType;
    }

    public byte getOrder() {
        return order;
    }

    public void setOrder(byte order) {
        this.order = order;
    }

    public byte[] getSensorID() {
        return sensorID;
    }

    public void setSensorID(byte[] sensorID) {
        this.sensorID = sensorID;
    }

    public byte getDataLength() {
        return dataLength;
    }

    public void setDataLength(byte dataLength) {
        this.dataLength = dataLength;
    }

    public byte[] getData() {
        return data;
    }

    public void setData(byte[] data) {
        this.data = data;
    }

    public byte getEquimentType() {
        return equimentType;
    }

    public void setEquimentType(byte equimentType) {
        this.equimentType = equimentType;
    }

    public byte[] getRecieveMsg() {
        return recieveMsg;
    }

    public void setRecieveMsg(byte[] recieveMsg) {
        this.recieveMsg = recieveMsg;
    }

    @Override
    public String toString() {
        return "RecieveData{" +
                "sensorType=" + sensorType +
                ", order=" + order +
                ", sensorID=" + Arrays.toString(sensorID) +
                ", dataLength=" + dataLength +
                ", data=" + Arrays.toString(data) +
                ", equimentType=" + equimentType +
                ", recieveMsg=" + Arrays.toString(recieveMsg) +
                '}';
    }
}
